package net.lab1024.sa.admin.module.business.yct.ycttzq.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 音频文件 新建表单
 *
 * @Author zhangben
 * @Date 2024-10-10 13:24:56
 * @Copyright 20241010
 */

@Data
public class AudioAddForm {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "主键 不能为空")
    private Integer id;

    @Schema(description = "用户账号ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "用户账号ID 不能为空")
    private Integer userId;

    @Schema(description = "人员ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "人员ID 不能为空")
    private Integer userProfileId;

    @Schema(description = "音频文件地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "音频文件地址 不能为空")
    private String audioPath;

    @Schema(description = "音频数据json", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "音频数据json 不能为空")
    private String audioData;

    @Schema(description = "数据", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "数据 不能为空")
    private String chartData;

    @Schema(description = "音频时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "音频时间 不能为空")
    private Integer audioTime;

    @Schema(description = "0 心 1肺", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "0 心 1肺 不能为空")
    private Integer audioType;

    @Schema(description = "位置类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "位置类型 不能为空")
    private String positionType;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "编号 不能为空")
    private String audioSn;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间 不能为空")
    private LocalDateTime createTime;

    @Schema(description = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "修改时间 不能为空")
    private LocalDateTime updateTime;

}